package org.shushan.cloud.lock.sample.request;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import org.shushan.cloud.lock.sample.response.MybatisTestVo;
import org.shushan.framework.core.condition.ConditionKeyword;
import org.shushan.framework.core.condition.ConditionOn;
import org.shushan.framework.core.condition.MultiConditionOn;
import org.shushan.framework.core.condition.ext.ConditionOnLikeRight;
import org.shushan.framework.core.page.PageVo;

import java.io.Serializable;
import java.util.Date;

/**
 * (TUser)查询参数实体
 * @author zhigang.li
 * @email 2429967859@qq.com
 * @since 2023-09-16 22:25:41
 */
@Getter
@Setter
@Schema(name = "MybatisTestPage",description = "MybatisTestPage分页查询")
public class MybatisTestPage extends PageVo<MybatisTestVo> implements Serializable {
    private static final long serialVersionUID = 357241028771644950L;
    private Long id;
    @ConditionOnLikeRight
    private String username;
    private String creator;
    private String modifier;
    private Integer delFlag;
    private Date createTime;
    private Date modifyTime;
    private String phone;
    private String address;
    private String sex;

    @MultiConditionOn({
            @ConditionOn(column = "address", value = ConditionKeyword.LIKE),
            @ConditionOn(column = "username", value = ConditionKeyword.LIKE)})
    private String addressAnName;



}

